public class Fish implements Swim {
    @Override
    public void swim() {
        System.out.println("Fish is swimming.");
    }

    public static void main(String[] args) {
        Fish fish = new Fish();
        fish.swim(); // 调用 swim 方法
    }
}